import numpy as np
a1=np.arange(8)
print('a1=',a1)
a2=np.append(a1,8)
print('a2=',a2)
a3=np.append(a1,[9,10])
print('a3=',a3)
print('a1=',a1)
a1[3]=8
print('a1=',a1)
a4=np.insert(a1,1,8)
print('a4=',a4)
a5=a1.repeat(3)
print('a5=',a5)
a1.put(0,9)
print('a1=',a1)
a1=np.array([[1,2,3],[4,5,6],[7,8,9]])
a1[0,2]=4
a1[1:1:]=1
print(a1)
